
execute at @s if data block ~ ~ ~ Items[{Slot:0b}].id store result score @s advm_power_cost run data get block ~ ~ ~ Items[{Slot:0b}].Count 
execute at @s if data block ~ ~ ~ Items[{Slot:0b}].id run scoreboard players operation @s advm_power_cost *= @s advm_burn_value
execute at @s if data block ~ ~ ~ Items[{Slot:0b}].id run scoreboard players operation @s advm_power += @s advm_power_cost 
execute at @s if data block ~ ~ ~ Items[{Slot:0b}].id run item replace block ~ ~ ~ container.0 with air

execute at @s if data block ~ ~ ~ Items[{Slot:1b}].id store result score @s advm_power_cost run data get block ~ ~ ~ Items[{Slot:1b}].Count 
execute at @s if data block ~ ~ ~ Items[{Slot:1b}].id run scoreboard players operation @s advm_power_cost *= @s advm_burn_value
execute at @s if data block ~ ~ ~ Items[{Slot:1b}].id run scoreboard players operation @s advm_power += @s advm_power_cost 
execute at @s if data block ~ ~ ~ Items[{Slot:1b}].id run item replace block ~ ~ ~ container.1 with air

execute at @s if data block ~ ~ ~ Items[{Slot:2b}].id store result score @s advm_power_cost run data get block ~ ~ ~ Items[{Slot:2b}].Count 
execute at @s if data block ~ ~ ~ Items[{Slot:2b}].id run scoreboard players operation @s advm_power_cost *= @s advm_burn_value
execute at @s if data block ~ ~ ~ Items[{Slot:2b}].id run scoreboard players operation @s advm_power += @s advm_power_cost 
execute at @s if data block ~ ~ ~ Items[{Slot:2b}].id run item replace block ~ ~ ~ container.2 with air

execute at @s if data block ~ ~ ~ Items[{Slot:3b}].id store result score @s advm_power_cost run data get block ~ ~ ~ Items[{Slot:3b}].Count 
execute at @s if data block ~ ~ ~ Items[{Slot:3b}].id run scoreboard players operation @s advm_power_cost *= @s advm_burn_value
execute at @s if data block ~ ~ ~ Items[{Slot:3b}].id run scoreboard players operation @s advm_power += @s advm_power_cost 
execute at @s if data block ~ ~ ~ Items[{Slot:3b}].id run item replace block ~ ~ ~ container.3 with air

execute at @s if data block ~ ~ ~ Items[{Slot:4b}].id store result score @s advm_power_cost run data get block ~ ~ ~ Items[{Slot:4b}].Count 
execute at @s if data block ~ ~ ~ Items[{Slot:4b}].id run scoreboard players operation @s advm_power_cost *= @s advm_burn_value
execute at @s if data block ~ ~ ~ Items[{Slot:4b}].id run scoreboard players operation @s advm_power += @s advm_power_cost 
execute at @s if data block ~ ~ ~ Items[{Slot:4b}].id run item replace block ~ ~ ~ container.4 with air

execute at @s if data block ~ ~ ~ Items[{Slot:5b}].id store result score @s advm_power_cost run data get block ~ ~ ~ Items[{Slot:5b}].Count 
execute at @s if data block ~ ~ ~ Items[{Slot:5b}].id run scoreboard players operation @s advm_power_cost *= @s advm_burn_value
execute at @s if data block ~ ~ ~ Items[{Slot:5b}].id run scoreboard players operation @s advm_power += @s advm_power_cost 
execute at @s if data block ~ ~ ~ Items[{Slot:5b}].id run item replace block ~ ~ ~ container.5 with air

execute at @s if data block ~ ~ ~ Items[{Slot:6b}].id store result score @s advm_power_cost run data get block ~ ~ ~ Items[{Slot:6b}].Count 
execute at @s if data block ~ ~ ~ Items[{Slot:6b}].id run scoreboard players operation @s advm_power_cost *= @s advm_burn_value
execute at @s if data block ~ ~ ~ Items[{Slot:6b}].id run scoreboard players operation @s advm_power += @s advm_power_cost 
execute at @s if data block ~ ~ ~ Items[{Slot:6b}].id run item replace block ~ ~ ~ container.6 with air

execute at @s if data block ~ ~ ~ Items[{Slot:7b}].id store result score @s advm_power_cost run data get block ~ ~ ~ Items[{Slot:7b}].Count 
execute at @s if data block ~ ~ ~ Items[{Slot:7b}].id run scoreboard players operation @s advm_power_cost *= @s advm_burn_value
execute at @s if data block ~ ~ ~ Items[{Slot:7b}].id run scoreboard players operation @s advm_power += @s advm_power_cost 
execute at @s if data block ~ ~ ~ Items[{Slot:7b}].id run item replace block ~ ~ ~ container.7 with air

execute at @s if data block ~ ~ ~ Items[{Slot:8b}].id store result score @s advm_power_cost run data get block ~ ~ ~ Items[{Slot:8b}].Count 
execute at @s if data block ~ ~ ~ Items[{Slot:8b}].id run scoreboard players operation @s advm_power_cost *= @s advm_burn_value
execute at @s if data block ~ ~ ~ Items[{Slot:8b}].id run scoreboard players operation @s advm_power += @s advm_power_cost 
execute at @s if data block ~ ~ ~ Items[{Slot:8b}].id run item replace block ~ ~ ~ container.8 with air
